#!/bin/sh 
#
#cmdtool $CD_MOUNT/find.sh

if [ "$NETSCAPE_CATALYST" != "" ]; then
#$NETSCAPE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from the\nSun Solutions CD.\n\nProceed?\n" -geometry =665x770+100+0 $WWW_FIRST 2>&-

$NETSCAPE_CATALYST -geometry =665x770+100+0 -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from \nSun Solutions CD.\n\nProceed?\n" $WWW_FIRST
else
$CD_MOUNT/products/bin/gui/$CDWARE_ENV/netscape -geometry =665x770+100+0 -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from \nSun Solutions CD.\n\nProceed?\n" -geometry =665x770+100+0 $WWW_FIRST 2>&-
fi

#
# clean-up
#
if [ -w /dev/audio ]; then

  if [ "$CDWARE_ENV" != "Solaris_1"  ]; then
        audioplay -i $CD_MOUNT/products/$disc_name/sounds/bye.au&
  else
        cat $CD_MOUNT/products/$disc_name/sounds/bye.au > /dev/audio&
  fi

fi

# mail or print more information request

if [ -r /tmp/httpd/info.email ]; then
     echo ""
     echo "Mailing more information request..."
     echo ""
     echo "------------------------------" >> /tmp/httpd/info.email
  /usr/ucb/mail -s "$disc_name Lead for Your Product" < /tmp/httpd/info.email emlts@cdware.sun.com 
fi
if [ -r /tmp/httpd/info.fax ]; then  
     echo "------------------------------" >> /tmp/httpd/info.fax
     echo "" >> /tmp/httpd/info.fax
     echo "FAX US! at (415)786-4104" >> /tmp/httpd/info.fax
     echo "" >> /tmp/httpd/info.fax
     echo "------------------------------" >> /tmp/httpd/info.fax
  	/usr/ucb/lpr /tmp/httpd/info.fax
fi



# kill httpd

kill -9 `cat /tmp/httpd/logs/httpd.pid`

#cleanup wais

if [ "$CDWARE_ENV" = "Solaris_1" ]; then
     # Clean up wais stuff:kill wais, remove link

     echo ""
     echo "Removing Wais server..."
     echo ""
	
     kill $PID_CDROM
     #kill $PID_CATALOG
fi 

# remove httpd config

rm -rf /tmp/httpd

if [ "$dir_exist" = "1" ]; then
#change
  mv $HOME/.netscape/preferences.solutions $HOME/.netscape/preferences
else 
  rm -rf $HOME/.netscape
fi
 
echo "" 
echo "" 


exit 0
